package com.tanhua.dubbo.server.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.bson.types.ObjectId;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;
import java.util.List;
import java.util.Map;

/**
 * @description:    问卷内容
 * @author: xy丶Z
 * @date: Created in 2021/3/3 16:38
 * @version: 1.0.0
 * @modified By:
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Document(collection = "soul_questionnaire")
public class Questionnaire implements Serializable {
    private static final long serialVersionUID = 432183095092216817L;

    private ObjectId id;
    private String testId; //问卷编号
    private String name; //问卷名称
    private String cover; //问卷封面
    private String level; //级别, 初中高级,(是否使用枚举)
    private Integer star; //星别 最大值: 5 最小值: 2
    private Integer isLock;  //是否锁住（0解锁，1锁住）
    private String reportId; //最新报告id   (非必须)

    private List<Questions> questions;  //试题
}
